Definition:
- A test method is a maverick when the class comprising the test method contains an implicit setup, but the test method is completely independent from the implicit setup procedure. The setup procedure will be executed before the test method is executed, but it is not needed. Also, understanding the effect-cause relationship between setup and test method can be hampered. Discovering that test methods are unrelated from the implicit setup can be time consuming.
References:
Quality attributes
- :octicon:`file-code;1em` - Code Example
- :octicon:`comment-discussion;1em` - Cause and Effect
- :octicon:`graph;1em` - Frequency
- :octicon:`sync;1em` - Refactoring
- Automated Detection of Test Fixture Strategies and Smells :octicon:`comment-discussion;1em` :octicon:`sync;1em`
- Automatic generation of smell-free unit tests :octicon:`comment-discussion;1em`
- PyNose: A Test Smell Detector For Python :octicon:`comment-discussion;1em` :octicon:`graph;1em`
- Strategies for avoiding text fixture smells during software evolution :octicon:`comment-discussion;1em` :octicon:`graph;1em` :octicon:`sync;1em`
- Test Smell Detection Tools: A Systematic Mapping Study